package my.mall.db.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;

/**
 * <p>
 * 商品扩展表
 * </p>
 *
 * @author fengbo
 * @since 2024-04-22
 */
@TableName("mall_goods_ext")
class GoodsExt {

    /**
     * 商品主键
     */
    @TableId("goods_id")
    var goodsId: Long? = null

    /**
     * 数据更新时间
     */
    var createdTime: LocalDateTime? = null

    /**
     * 数据更新时间
     */
    var updatedTime: LocalDateTime? = null

    /**
     * 商品轮播图地址-JSON格式数组
     */
    var mainImgUrls: String? = null

    /**
     * 商品详情
     */
    var contentImgUrls: String? = null

    var attrDetail: String? = null

    companion object {

        const val GOODS_ID : String = "goods_id"


        const val CREATED_TIME : String = "created_time"


        const val UPDATED_TIME : String = "updated_time"


        const val MAIN_IMG_URLS : String = "main_img_urls"


        const val CONTENT_IMG_URLS : String = "content_img_urls"


        const val ATTR_DETAIL : String = "attr_detail"

    }

    override fun toString(): String {
        return "GoodsExt{" +
        "goodsId=" + goodsId +
        ", createdTime=" + createdTime +
        ", updatedTime=" + updatedTime +
        ", mainImgUrls=" + mainImgUrls +
        ", contentImgUrls=" + contentImgUrls +
        ", attrDetail=" + attrDetail +
        "}"
    }
}
